package com.lyp.supermanage.api;

import com.lyp.supermanage.bean.DetailsBean;
import com.lyp.supermanage.bean.LoginBean;
import com.lyp.supermanage.bean.ReportDetailsBean;
import com.lyp.supermanage.bean.StatementBean;

import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * 作者:ChenXi 时间:2017/7/4 15: 53
 */

public interface Api {

    public String APP_URL = "http://www.91yangxixi.com/api/index.php/api/manage/";

    //登录
    @FormUrlEncoded
    @POST("login")
    Call<LoginBean> getLogin(
            @Field("user") String user,
            @Field("pwd") String pwd);

    //报表
    @GET("statement")
    Call<StatementBean> getStatement();

    //详情
    @GET("company")
    Call<DetailsBean> getDetails(
       @Query("type") String type);

    //报告详情
    @GET("details")
    Call<ReportDetailsBean> getReportDetails(
            @Query("id") String id,
            @Query("type") int type,
            @Query("time") String time);

}
